package com.chinasoft.tw.service.songzheng;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class SongZheng implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public SongZheng() {
        this.name = "宋政";
        wordList.add("打工去了，去南方");
        wordList.add("大坝挣钱");

    }
    @Override
    public Info getTrueWord() {
        return new Info(name, wordList.get(random.nextInt(wordList.size())));
    }
    }

